
#ifndef _IOTA_PAYLOAD_H_
#define _IOTA_PAYLOAD_H_

#include <stdio.h>          // 标准输入输出
#include <stdint.h>         // 几种扩展的整数类型和宏
#include <stdlib.h>         // 标准函数库
#include <string.h>         // 字符串处理(操作字符数组)
#include "ohos_init.h"          // 用于初始化服务(services)和功能(features)
#include "cmsis_os2.h"          // CMSIS-RTOS API V2
#include "common.h"
#include "cJSON.h"
#include "hw_type.h"


#define IOT_SERVICEID_NAME                          "solo_service"

#define IOT_SW_VERSION                              "sw_version"
#define IOT_HW_VERSION                              "hw_version"
#define IOT_SOC                                     "soc"


#define EVENT_TIME                                  "event_time"
#define OBJECT_DEVICE_ID                            "object_device_id"
#define VERSION                                     "version"
#define SERVICE_ID                                  "service_id"
#define DEVICE_ID                                   "device_id"
#define DEVICE_IP                                   "device_ip"
#define PROPERTIES                                  "properties"
#define STR_SERVICE                                 "services"



char *IOTA_ReportBmsInfoPayload(ST_IOTA_DEVICE_INFO_REPORT *device_info_report);
char *IOTA_ReportBmsInfoTabIndex(ST_IOTA_DEVICE_INFO_REPORT *device_info_report, uint32_t index);

void MqttSubEntry(void);
void mqtt_SubTaskHandle(void *arg);

#endif 


